package org.huangke.service.impl;

import org.huangke.dao.UserDao;
import org.huangke.service.UserService;

// 实现UserService接口
public class UserServiceImpl implements UserService {

    UserDao userDao;

    // 通过 setUserDao 方法注入 UserDao 对象
    public void setUserDao(UserDao userDao) {
        this.userDao=userDao;
    }


    @Override
    public boolean login(String name, String password) {
        return userDao.login(name,password);
    }

}
